<html style=" ">

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-touch-fullscreen" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<meta name="format-detection" content="address=no">
	<title>诚介网-批量交易-详情</title>
	<link rel="stylesheet" href="{pigcms{$static_path}css/base.css">
	<link rel="stylesheet" type="text/css" href="{pigcms{$static_path}css/index.css">
        <link rel="stylesheet" type="text/css" href="{pigcms{$static_public}js/layer.mobile-v1.7/need/layer.css">
</head>

<body class="didding_details">
<aside class="layer_content">
	<div class="layer"></div>
	<div class="shear_list">
		<ul class="clearfix">
			<li>
				<img src="{pigcms{$static_path}images/UI2-12_03_03.png" alt="">
				<p>whois</p>
			</li>
			<li>
				<img src="{pigcms{$static_path}images/UI2-12_03_06.png" alt="">
				<p>发微信好友</p>
			</li>
			<li>
				<img src="{pigcms{$static_path}images/UI2-12_03_08.png" alt="">
				<p>分享到朋友圈</p>
			</li>
			<li>
				<img src="{pigcms{$static_path}images/UI2-12_03_13.png" alt="">
				<p>分享到微博</p>
			</li>
			<li>
				<img src="{pigcms{$static_path}images/UI2-12_03_15.png" alt="">
				<p>返回首页</p>
			</li>
		</ul>
		<button type="txt" class="cancel">取消</button>
	</div>
</aside>
<header class="header bidding_header">
	<a href="{pigcms{:U('Pldomain/index')}"><i></i></a>
	<p>批量交易</p> <em class="shear"></em>
</header>
<article>
	<section>
		<div class="didding_details_title">
			<h4>{pigcms{$domain_list.title}</h4><em></em>
			<p>{pigcms{$domain_list.meaning}</p>
		</div>
		<ul class="didding_list mg_top">
<!--			<li><span>注册商</span><span>诚介网</span></li>-->
			<li><span>总价</span><span>{pigcms{$domain_list.total_price|number_format} 元</span></li>
			<li><span>单价</span><span>{pigcms{$domain_list.unit_price|number_format} 元</span></li>
                        <li><span>数量</span><span>{pigcms{$domain_list.amount|number_format}</span></li>
                        <volist id="vo" name="domain_list['domain_list']">
                            <li><span></span><span>{pigcms{$vo}</span></li>
                        </volist>
		</ul>
		<div class="dding_info"><i></i><span>注意：点击购买代表您同意购买该域名，拒绝购买将扣除保证金作为违约金。</span></div>
		<div class="didding_form clearfix">
                        <input type="hidden"  id="bulk_id" value="{pigcms{$domain_list.bulk_id}"/>
			<button id="pldomain">立即购买</button>
		</div>
	</section>
</article>

<script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="{pigcms{$static_path}js/index.js"></script>
<script src="{pigcms{$static_path}js/rem.js"></script>
<script src="{pigcms{$static_public}js/layer.mobile-v1.7/layer.js"></script>
<script>
	var erro_no = "{pigcms{$error_no}";
        var erro_msg = '{pigcms{$erro_msg}';
	var index_url = "{pigcms{:U('Home/index')}";
	if(erro_no){
		layer.open({
			content: erro_msg,
			btn: ['OK'],
			shadeClose: true,
			yes: function(){
				window.location.href=index_url;
			}
		});
	}
</script>
<script>
    //报价
    $("#pldomain").click(function () {
        layer.open({
            content: '你是想确认呢，确定将会扣去部分保证金？',
            btn: ['确认', '取消'],
            shadeClose: true,
            yes: function(){
                var bulk_id = $("#bulk_id").val();
                $.post("{pigcms{:U('Pldomain/buy_margin')}",{"bulk_id":bulk_id}, function (result) {
                    result = $.parseJSON(result);
                        if(result){
                            if(result.error == 0){
                                layer.open({
                                    content: result.msg,
                                    btn: ['OK'],
                                    shadeClose: true,
                                    yes: function(){
                                            window.location.href="{pigcms{:U('Pldomain/index')}";
                                    }
                                });
                            }else{
                                layer.open({
                                    content: result.msg,
                                    btn: ['OK']
                                });
                            }

                        }
                });
//                layer.open({content: '你点了确认', time: 1});
            }, no: function(){
                layer.open({content: '你选择了取消', time: 1});
            }
        });
        
    });
</script>
</body>

</html>